package com.jcx.ldzj.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 业精于勤荒于嬉，行成于思毁于随！
* @author ld
* @since 2021-11-13
*/
@Data
@TableName("role_info")
@ApiModel(value="RoleInfo对象", description="角色表")
public class RoleInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色表id")
    @TableId("id_")
    private String id;

    @ApiModelProperty(value = "角色名称")
    @TableField("role_name_")
    private String roleName;

    @ApiModelProperty(value = "角色状态")
    @TableField("state_")
    private String state;

    @ApiModelProperty(value = "创建时间")
    @TableField(value="create_time_",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value="update_time_",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField(value="updataer_",fill = FieldFill.INSERT_UPDATE)
    private String updataer;

    @ApiModelProperty(value = "创建人")
    @TableField(value="creatar_",fill = FieldFill.INSERT)
    private String creatar;

    @ApiModelProperty(value = "备注")
    @TableField("remark_")
    private String remark;

    @ApiModelProperty(value = "角色标识")
    @TableField("role_code_")
    private String roleCode;


    @Override
    public String toString() {
    return "RoleInfo{" +
        "id=" + id+ '\'' +
        "roleName=" + roleName+ '\'' +
        "state=" + state+ '\'' +
        "createTime=" + createTime+ '\'' +
        "updateTime=" + updateTime+ '\'' +
        "updataer=" + updataer+ '\'' +
        "creatar=" + creatar+ '\'' +
        "remark=" + remark+ '\'' +
        "roleCode=" + roleCode+ '\'' +
    '}';
    }

}
